package com.hsnn.medstgmini.pro.base.model;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @category 备案信息查询实体类
 * @author 韩守松
 * @date 2015年6月19日
 */
@Entity
@Table(name="view_bakpurchase")

public class ViewBakpurchase  implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -3162166696071406716L;
	private String bakPurId;//备案id
	private String bakHospId;//备案医疗机构id
	private String drugId;//药品id
	private Double purPrice;//采购价格
	private Integer purAmount;//采购数量
	private String delId;//配送企业id
	private Short isLongtimePlan;//是否长期采购 0非长期1长期	
	private String bakReason;//备案理由
	private String remark;//备注
	private Timestamp bakSubmitDatetime;//备案提交时间
	private String bakSubmitUser;//备案提交人
	private Short auditStatus;//审核状态0未审核1通过2不通过
	private String auditRemaks;//审核备注
	private Timestamp auditDatetime;//审核时间
	private String auditUser;//审核人
	private String vdDrugid;//药品表id
	private String drugCode;//药品编码
	private String drugName;//通用名
	private String drugNameSpel;//通用名拼音码
	private String drugNameEng;//通用名英文名
	private String busName;//商品名
	private String formId;//剂型id
	private String formName;//剂型
	private String specId;//规格id
	private String specName;//规格
	private Integer factor;//转换系数
	private String unit;//单位
	private String prodCompId;//生产企业id
	private String compName;//生产企业名称
	private String materialId;//材质id
	private String materialName;//材质
	private String approvalCode;//批准文号
	private Timestamp approvalDate;//批准日期
	private Short status;//标准状态。1.有效2作废3合并
	private Timestamp updDatetime;//更新时间
	private String updUser;//更新人
	private String username;//
	private String historyDrugCode;//历史药品编码
	private Short mergeStatus;//合并处理状态
	private Short drugAttr;//基本药物属性 1.国家基本药物（2012版）；2.省增补基本药物；3.其他
	private Integer drugIndex;//基药序号
	private String pharId;//药理分类id
	private String pharName;//药理
	private Short patternType;//专利类型。1. 发明专利；2. 实用新型专利；3. 外观设计专利；4.没有专利；9.不详。
	private Short drugSource;//药品来源。1.国产；2.进口；9不详。
	private Short isLowprice;//是否低价药,1是0否9未知
	private Short isAgriculture;//是否农合,1是0否9未知
	private Short isHealthcare;//是否医保,1是0否9未知
	private String drugStdCode;//药品本位码
	private String drugStdcdRemark;//药品本位码备注
	private String cdRemark;//说明
	private String compId;//企业id
	private String compCode;//企业编码
	private String scCompname;//配送企业名称
	private String compSpelCode;//配送企业名称拼音码
	private String compNameEng;//企业英文名称
	private String compShortName;//简称拼音码
	private String compShortSpelCode;//企业英文名称
	private Short compType;//企业类型1生产企业2配送企业
	private String areaId;//注册地行政区划代码
	private String compRegId;//企业注册类型id
	private String orgCode;//组织机构代码
	private String compGroupId;//所属集团id
	private String compPhone;//机构电话
	private String compAddress;//机构地址
	private Short compClassify;//企业分类0默认1药品2耗材3药品耗材
	private Short scStatus;//企业类型状态1有效2作废3合并
	private Timestamp scUpddatetime;//企业类型更新时间
	private String scUpduser;//企业类型更新人
	private String historyCode;//企业类型历史企业编码
	private Short mergeState;//企业类型合并处理状态，0未处理1已处理
	private String hospId;//医疗机构ID
	private String hospCode;//医疗机构编码
	private String hospName;//医疗机构名称
	private String hospSpelCode;//医疗机构名称拼音码
	private String hospShortName;//医疗机构简称
	private String hospShortSpelCode;//医疗机构简称拼音码
	private String shAreaId;//注册地行政区划代码
	private String shOrgCode;//组织机构代码
	private Short hospClassify;//医疗机构分类1县级及县以上医疗机构2基层医疗机构3部队医疗机构4民营医疗机构
	private String hospTypeId;//医疗机构类型
	private String shHospLevelId;//医疗机构等级
	private String hospAddress;//机构地址
	private String hospPhone;//机构电话
	private Short shStatus;//状态1有效2作废3合并
	private Timestamp shUpdDatetime;//更新时间
	private String shUpdUser;//更新人
	private String shHistoryCode;//历史医疗机构编码
	private Short shmergeState;//合并处理状态，0未处理1已处理
    private String arFullname;//所属地区名称
	
	private long count;//查询结果总数
	// Constructors
	
	private String submitStartDate;	//	提交开始日期yyyy-MM-dd
	private String submitEndDate;	//	提交结束日期yyyy-MM-dd

	/** default constructor */
	public ViewBakpurchase() {
	}

	/** minimal constructor */
	public ViewBakpurchase(String bakPurId) {
		this.bakPurId = bakPurId;
	}

	/** full constructor */
	public ViewBakpurchase(String bakPurId, String bakHospId, String drugId,
			Double purPrice, Integer purAmount, String delId,
			Short isLongtimePlan, String bakReason, String remark,
			Timestamp bakSubmitDatetime, String bakSubmitUser,
			Short auditStatus, String auditRemaks, Timestamp auditDatetime,
			String auditUser, String vdDrugid, String drugCode,
			String drugName, String drugNameSpel, String drugNameEng,
			String busName, String formId, String formName, String specId,
			String specName, Integer factor, String unit, String prodCompId,
			String compName, String materialId, String materialName,
			String approvalCode, Timestamp approvalDate, Short status,
			Timestamp updDatetime, String updUser, String username,
			String historyDrugCode, Short mergeStatus, Short drugAttr,
			Integer drugIndex, String pharId, String pharName,
			Short patternType, Short drugSource, Short isLowprice,
			Short isAgriculture, Short isHealthcare, String drugStdCode,
			String drugStdcdRemark, String cdRemark, String compId,
			String compCode, String scCompname, String compSpelCode,
			String compNameEng, String compShortName, String compShortSpelCode,
			Short compType, String areaId, String compRegId, String orgCode,
			String compGroupId, String compPhone, String compAddress,
			Short compClassify, Short scStatus, Timestamp scUpddatetime,
			String scUpduser, String historyCode, Short mergeState,
			String hospId, String hospCode, String hospName,
			String hospSpelCode, String hospShortName,
			String hospShortSpelCode, String shAreaId, String shOrgCode,
			Short hospClassify, String hospTypeId, String shHospLevelId,
			String hospAddress, String hospPhone, Short shStatus,
			Timestamp shUpdDatetime, String shUpdUser, String shHistoryCode,
			Short shmergeState) {
		this.bakPurId = bakPurId;
		this.bakHospId = bakHospId;
		this.drugId = drugId;
		this.purPrice = purPrice;
		this.purAmount = purAmount;
		this.delId = delId;
		this.isLongtimePlan = isLongtimePlan;
		this.bakReason = bakReason;
		this.remark = remark;
		this.bakSubmitDatetime = bakSubmitDatetime;
		this.bakSubmitUser = bakSubmitUser;
		this.auditStatus = auditStatus;
		this.auditRemaks = auditRemaks;
		this.auditDatetime = auditDatetime;
		this.auditUser = auditUser;
		this.vdDrugid = vdDrugid;
		this.drugCode = drugCode;
		this.drugName = drugName;
		this.drugNameSpel = drugNameSpel;
		this.drugNameEng = drugNameEng;
		this.busName = busName;
		this.formId = formId;
		this.formName = formName;
		this.specId = specId;
		this.specName = specName;
		this.factor = factor;
		this.unit = unit;
		this.prodCompId = prodCompId;
		this.compName = compName;
		this.materialId = materialId;
		this.materialName = materialName;
		this.approvalCode = approvalCode;
		this.approvalDate = approvalDate;
		this.status = status;
		this.updDatetime = updDatetime;
		this.updUser = updUser;
		this.username = username;
		this.historyDrugCode = historyDrugCode;
		this.mergeStatus = mergeStatus;
		this.drugAttr = drugAttr;
		this.drugIndex = drugIndex;
		this.pharId = pharId;
		this.pharName = pharName;
		this.patternType = patternType;
		this.drugSource = drugSource;
		this.isLowprice = isLowprice;
		this.isAgriculture = isAgriculture;
		this.isHealthcare = isHealthcare;
		this.drugStdCode = drugStdCode;
		this.drugStdcdRemark = drugStdcdRemark;
		this.cdRemark = cdRemark;
		this.compId = compId;
		this.compCode = compCode;
		this.scCompname = scCompname;
		this.compSpelCode = compSpelCode;
		this.compNameEng = compNameEng;
		this.compShortName = compShortName;
		this.compShortSpelCode = compShortSpelCode;
		this.compType = compType;
		this.areaId = areaId;
		this.compRegId = compRegId;
		this.orgCode = orgCode;
		this.compGroupId = compGroupId;
		this.compPhone = compPhone;
		this.compAddress = compAddress;
		this.compClassify = compClassify;
		this.scStatus = scStatus;
		this.scUpddatetime = scUpddatetime;
		this.scUpduser = scUpduser;
		this.historyCode = historyCode;
		this.mergeState = mergeState;
		this.hospId = hospId;
		this.hospCode = hospCode;
		this.hospName = hospName;
		this.hospSpelCode = hospSpelCode;
		this.hospShortName = hospShortName;
		this.hospShortSpelCode = hospShortSpelCode;
		this.shAreaId = shAreaId;
		this.shOrgCode = shOrgCode;
		this.hospClassify = hospClassify;
		this.hospTypeId = hospTypeId;
		this.shHospLevelId = shHospLevelId;
		this.hospAddress = hospAddress;
		this.hospPhone = hospPhone;
		this.shStatus = shStatus;
		this.shUpdDatetime = shUpdDatetime;
		this.shUpdUser = shUpdUser;
		this.shHistoryCode = shHistoryCode;
		this.shmergeState = shmergeState;
	}

	// Property accessors
	@Id
	@Column(name = "bak_pur_id", nullable = false, length = 36)
	public String getBakPurId() {
		return this.bakPurId;
	}

	public void setBakPurId(String bakPurId) {
		this.bakPurId = bakPurId;
	}

	@Column(name = "bak_hosp_id", length = 36)
	public String getBakHospId() {
		return this.bakHospId;
	}

	public void setBakHospId(String bakHospId) {
		this.bakHospId = bakHospId;
	}

	@Column(name = "drug_id", length = 36)
	public String getDrugId() {
		return this.drugId;
	}

	public void setDrugId(String drugId) {
		this.drugId = drugId;
	}

	@Column(name = "pur_price", precision = 18, scale = 3)
	public Double getPurPrice() {
		return this.purPrice;
	}

	public void setPurPrice(Double purPrice) {
		this.purPrice = purPrice;
	}

	@Column(name = "pur_amount")
	public Integer getPurAmount() {
		return this.purAmount;
	}

	public void setPurAmount(Integer purAmount) {
		this.purAmount = purAmount;
	}

	@Column(name = "del_id", length = 36)
	public String getDelId() {
		return this.delId;
	}

	public void setDelId(String delId) {
		this.delId = delId;
	}

	@Column(name = "is_longtime_plan")
	public Short getIsLongtimePlan() {
		return this.isLongtimePlan;
	}

	public void setIsLongtimePlan(Short isLongtimePlan) {
		this.isLongtimePlan = isLongtimePlan;
	}

	@Column(name = "bak_reason", length = 1024)
	public String getBakReason() {
		return this.bakReason;
	}

	public void setBakReason(String bakReason) {
		this.bakReason = bakReason;
	}

	@Column(name = "remark", length = 2048)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "bak_submit_datetime", length = 19)
	public Timestamp getBakSubmitDatetime() {
		return this.bakSubmitDatetime;
	}

	public void setBakSubmitDatetime(Timestamp bakSubmitDatetime) {
		this.bakSubmitDatetime = bakSubmitDatetime;
	}

	@Column(name = "bak_submit_user", length = 36)
	public String getBakSubmitUser() {
		return this.bakSubmitUser;
	}

	public void setBakSubmitUser(String bakSubmitUser) {
		this.bakSubmitUser = bakSubmitUser;
	}

	@Column(name = "audit_status")
	public Short getAuditStatus() {
		return this.auditStatus;
	}

	public void setAuditStatus(Short auditStatus) {
		this.auditStatus = auditStatus;
	}

	@Column(name = "audit_remaks", length = 1024)
	public String getAuditRemaks() {
		return this.auditRemaks;
	}

	public void setAuditRemaks(String auditRemaks) {
		this.auditRemaks = auditRemaks;
	}

	@Column(name = "audit_datetime", length = 19)
	public Timestamp getAuditDatetime() {
		return this.auditDatetime;
	}

	public void setAuditDatetime(Timestamp auditDatetime) {
		this.auditDatetime = auditDatetime;
	}

	@Column(name = "audit_user", length = 36)
	public String getAuditUser() {
		return this.auditUser;
	}

	public void setAuditUser(String auditUser) {
		this.auditUser = auditUser;
	}

	@Column(name = "vd_drugid", length = 36)
	public String getVdDrugid() {
		return this.vdDrugid;
	}

	public void setVdDrugid(String vdDrugid) {
		this.vdDrugid = vdDrugid;
	}

	@Column(name = "drug_code", length = 100)
	public String getDrugCode() {
		return this.drugCode;
	}

	public void setDrugCode(String drugCode) {
		this.drugCode = drugCode;
	}

	@Column(name = "drug_name", length = 512)
	public String getDrugName() {
		return this.drugName;
	}

	public void setDrugName(String drugName) {
		this.drugName = drugName;
	}

	@Column(name = "drug_name_spel", length = 128)
	public String getDrugNameSpel() {
		return this.drugNameSpel;
	}

	public void setDrugNameSpel(String drugNameSpel) {
		this.drugNameSpel = drugNameSpel;
	}

	@Column(name = "drug_name_eng", length = 512)
	public String getDrugNameEng() {
		return this.drugNameEng;
	}

	public void setDrugNameEng(String drugNameEng) {
		this.drugNameEng = drugNameEng;
	}

	@Column(name = "bus_name", length = 256)
	public String getBusName() {
		return this.busName;
	}

	public void setBusName(String busName) {
		this.busName = busName;
	}

	@Column(name = "form_id", length = 36)
	public String getFormId() {
		return this.formId;
	}

	public void setFormId(String formId) {
		this.formId = formId;
	}

	@Column(name = "form_name", length = 100)
	public String getFormName() {
		return this.formName;
	}

	public void setFormName(String formName) {
		this.formName = formName;
	}

	@Column(name = "spec_id", length = 36)
	public String getSpecId() {
		return this.specId;
	}

	public void setSpecId(String specId) {
		this.specId = specId;
	}

	@Column(name = "spec_name", length = 100)
	public String getSpecName() {
		return this.specName;
	}

	public void setSpecName(String specName) {
		this.specName = specName;
	}

	@Column(name = "factor")
	public Integer getFactor() {
		return this.factor;
	}

	public void setFactor(Integer factor) {
		this.factor = factor;
	}

	@Column(name = "unit", length = 36)
	public String getUnit() {
		return this.unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	@Column(name = "prod_comp_id", length = 36)
	public String getProdCompId() {
		return this.prodCompId;
	}

	public void setProdCompId(String prodCompId) {
		this.prodCompId = prodCompId;
	}

	@Column(name = "comp_name", length = 512)
	public String getCompName() {
		return this.compName;
	}

	public void setCompName(String compName) {
		this.compName = compName;
	}

	@Column(name = "material_id", length = 36)
	public String getMaterialId() {
		return this.materialId;
	}

	public void setMaterialId(String materialId) {
		this.materialId = materialId;
	}

	@Column(name = "material_name", length = 100)
	public String getMaterialName() {
		return this.materialName;
	}

	public void setMaterialName(String materialName) {
		this.materialName = materialName;
	}

	@Column(name = "approval_code", length = 100)
	public String getApprovalCode() {
		return this.approvalCode;
	}

	public void setApprovalCode(String approvalCode) {
		this.approvalCode = approvalCode;
	}

	@Column(name = "approval_date", length = 19)
	public Timestamp getApprovalDate() {
		return this.approvalDate;
	}

	public void setApprovalDate(Timestamp approvalDate) {
		this.approvalDate = approvalDate;
	}

	@Column(name = "status")
	public Short getStatus() {
		return this.status;
	}

	public void setStatus(Short status) {
		this.status = status;
	}

	@Column(name = "upd_datetime", length = 19)
	public Timestamp getUpdDatetime() {
		return this.updDatetime;
	}

	public void setUpdDatetime(Timestamp updDatetime) {
		this.updDatetime = updDatetime;
	}

	@Column(name = "upd_user", length = 36)
	public String getUpdUser() {
		return this.updUser;
	}

	public void setUpdUser(String updUser) {
		this.updUser = updUser;
	}

	@Column(name = "username", length = 50)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "history_drug_code", length = 100)
	public String getHistoryDrugCode() {
		return this.historyDrugCode;
	}

	public void setHistoryDrugCode(String historyDrugCode) {
		this.historyDrugCode = historyDrugCode;
	}

	@Column(name = "merge_status")
	public Short getMergeStatus() {
		return this.mergeStatus;
	}

	public void setMergeStatus(Short mergeStatus) {
		this.mergeStatus = mergeStatus;
	}

	@Column(name = "drug_attr")
	public Short getDrugAttr() {
		return this.drugAttr;
	}

	public void setDrugAttr(Short drugAttr) {
		this.drugAttr = drugAttr;
	}

	@Column(name = "drug_index")
	public Integer getDrugIndex() {
		return this.drugIndex;
	}

	public void setDrugIndex(Integer drugIndex) {
		this.drugIndex = drugIndex;
	}

	@Column(name = "phar_id", length = 36)
	public String getPharId() {
		return this.pharId;
	}

	public void setPharId(String pharId) {
		this.pharId = pharId;
	}

	@Column(name = "phar_name")
	public String getPharName() {
		return this.pharName;
	}

	public void setPharName(String pharName) {
		this.pharName = pharName;
	}

	@Column(name = "pattern_type")
	public Short getPatternType() {
		return this.patternType;
	}

	public void setPatternType(Short patternType) {
		this.patternType = patternType;
	}

	@Column(name = "drug_source")
	public Short getDrugSource() {
		return this.drugSource;
	}

	public void setDrugSource(Short drugSource) {
		this.drugSource = drugSource;
	}

	@Column(name = "is_lowprice")
	public Short getIsLowprice() {
		return this.isLowprice;
	}

	public void setIsLowprice(Short isLowprice) {
		this.isLowprice = isLowprice;
	}

	@Column(name = "is_agriculture")
	public Short getIsAgriculture() {
		return this.isAgriculture;
	}

	public void setIsAgriculture(Short isAgriculture) {
		this.isAgriculture = isAgriculture;
	}

	@Column(name = "is_healthcare")
	public Short getIsHealthcare() {
		return this.isHealthcare;
	}

	public void setIsHealthcare(Short isHealthcare) {
		this.isHealthcare = isHealthcare;
	}

	@Column(name = "drug_std_code", length = 128)
	public String getDrugStdCode() {
		return this.drugStdCode;
	}

	public void setDrugStdCode(String drugStdCode) {
		this.drugStdCode = drugStdCode;
	}

	@Column(name = "drug_stdcd_remark", length = 1024)
	public String getDrugStdcdRemark() {
		return this.drugStdcdRemark;
	}

	public void setDrugStdcdRemark(String drugStdcdRemark) {
		this.drugStdcdRemark = drugStdcdRemark;
	}

	@Column(name = "cd_remark", length = 4000)
	public String getCdRemark() {
		return this.cdRemark;
	}

	public void setCdRemark(String cdRemark) {
		this.cdRemark = cdRemark;
	}

	@Column(name = "comp_id", length = 36)
	public String getCompId() {
		return this.compId;
	}

	public void setCompId(String compId) {
		this.compId = compId;
	}

	@Column(name = "comp_code", length = 100)
	public String getCompCode() {
		return this.compCode;
	}

	public void setCompCode(String compCode) {
		this.compCode = compCode;
	}

	@Column(name = "sc_compname", length = 512)
	public String getScCompname() {
		return this.scCompname;
	}

	public void setScCompname(String scCompname) {
		this.scCompname = scCompname;
	}

	@Column(name = "comp_spel_code", length = 128)
	public String getCompSpelCode() {
		return this.compSpelCode;
	}

	public void setCompSpelCode(String compSpelCode) {
		this.compSpelCode = compSpelCode;
	}

	@Column(name = "comp_name_eng", length = 512)
	public String getCompNameEng() {
		return this.compNameEng;
	}

	public void setCompNameEng(String compNameEng) {
		this.compNameEng = compNameEng;
	}

	@Column(name = "comp_short_name", length = 256)
	public String getCompShortName() {
		return this.compShortName;
	}

	public void setCompShortName(String compShortName) {
		this.compShortName = compShortName;
	}

	@Column(name = "comp_short_spel_code", length = 128)
	public String getCompShortSpelCode() {
		return this.compShortSpelCode;
	}

	public void setCompShortSpelCode(String compShortSpelCode) {
		this.compShortSpelCode = compShortSpelCode;
	}

	@Column(name = "comp_type")
	public Short getCompType() {
		return this.compType;
	}

	public void setCompType(Short compType) {
		this.compType = compType;
	}

	@Column(name = "area_id", length = 20)
	public String getAreaId() {
		return this.areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}

	@Column(name = "comp_reg_id", length = 36)
	public String getCompRegId() {
		return this.compRegId;
	}

	public void setCompRegId(String compRegId) {
		this.compRegId = compRegId;
	}

	@Column(name = "org_code", length = 20)
	public String getOrgCode() {
		return this.orgCode;
	}

	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}

	@Column(name = "comp_group_id", length = 36)
	public String getCompGroupId() {
		return this.compGroupId;
	}

	public void setCompGroupId(String compGroupId) {
		this.compGroupId = compGroupId;
	}

	@Column(name = "comp_phone", length = 20)
	public String getCompPhone() {
		return this.compPhone;
	}

	public void setCompPhone(String compPhone) {
		this.compPhone = compPhone;
	}

	@Column(name = "comp_address", length = 1024)
	public String getCompAddress() {
		return this.compAddress;
	}

	public void setCompAddress(String compAddress) {
		this.compAddress = compAddress;
	}

	@Column(name = "comp_classify")
	public Short getCompClassify() {
		return this.compClassify;
	}

	public void setCompClassify(Short compClassify) {
		this.compClassify = compClassify;
	}

	@Column(name = "sc_status")
	public Short getScStatus() {
		return this.scStatus;
	}

	public void setScStatus(Short scStatus) {
		this.scStatus = scStatus;
	}

	@Column(name = "sc_upddatetime", length = 19)
	public Timestamp getScUpddatetime() {
		return this.scUpddatetime;
	}

	public void setScUpddatetime(Timestamp scUpddatetime) {
		this.scUpddatetime = scUpddatetime;
	}

	@Column(name = "sc_upduser", length = 36)
	public String getScUpduser() {
		return this.scUpduser;
	}

	public void setScUpduser(String scUpduser) {
		this.scUpduser = scUpduser;
	}

	@Column(name = "history_code", length = 100)
	public String getHistoryCode() {
		return this.historyCode;
	}

	public void setHistoryCode(String historyCode) {
		this.historyCode = historyCode;
	}

	@Column(name = "merge_state")
	public Short getMergeState() {
		return this.mergeState;
	}

	public void setMergeState(Short mergeState) {
		this.mergeState = mergeState;
	}

	@Column(name = "hosp_id", length = 36)
	public String getHospId() {
		return this.hospId;
	}

	public void setHospId(String hospId) {
		this.hospId = hospId;
	}

	@Column(name = "hosp_code", length = 100)
	public String getHospCode() {
		return this.hospCode;
	}

	public void setHospCode(String hospCode) {
		this.hospCode = hospCode;
	}

	@Column(name = "hosp_name", length = 512)
	public String getHospName() {
		return this.hospName;
	}

	public void setHospName(String hospName) {
		this.hospName = hospName;
	}

	@Column(name = "hosp_spel_code", length = 128)
	public String getHospSpelCode() {
		return this.hospSpelCode;
	}

	public void setHospSpelCode(String hospSpelCode) {
		this.hospSpelCode = hospSpelCode;
	}

	@Column(name = "hosp_short_name", length = 256)
	public String getHospShortName() {
		return this.hospShortName;
	}

	public void setHospShortName(String hospShortName) {
		this.hospShortName = hospShortName;
	}

	@Column(name = "hosp_short_spel_code", length = 128)
	public String getHospShortSpelCode() {
		return this.hospShortSpelCode;
	}

	public void setHospShortSpelCode(String hospShortSpelCode) {
		this.hospShortSpelCode = hospShortSpelCode;
	}

	@Column(name = "sh_area_id", length = 20)
	public String getShAreaId() {
		return this.shAreaId;
	}

	public void setShAreaId(String shAreaId) {
		this.shAreaId = shAreaId;
	}

	@Column(name = "sh_org_code", length = 20)
	public String getShOrgCode() {
		return this.shOrgCode;
	}

	public void setShOrgCode(String shOrgCode) {
		this.shOrgCode = shOrgCode;
	}

	@Column(name = "hosp_classify")
	public Short getHospClassify() {
		return this.hospClassify;
	}

	public void setHospClassify(Short hospClassify) {
		this.hospClassify = hospClassify;
	}

	@Column(name = "hosp_type_id", length = 36)
	public String getHospTypeId() {
		return this.hospTypeId;
	}

	public void setHospTypeId(String hospTypeId) {
		this.hospTypeId = hospTypeId;
	}

	@Column(name = "sh_hosp_level_id", length = 10)
	public String getShHospLevelId() {
		return this.shHospLevelId;
	}

	public void setShHospLevelId(String shHospLevelId) {
		this.shHospLevelId = shHospLevelId;
	}

	@Column(name = "hosp_address", length = 1024)
	public String getHospAddress() {
		return this.hospAddress;
	}

	public void setHospAddress(String hospAddress) {
		this.hospAddress = hospAddress;
	}

	@Column(name = "hosp_phone", length = 20)
	public String getHospPhone() {
		return this.hospPhone;
	}

	public void setHospPhone(String hospPhone) {
		this.hospPhone = hospPhone;
	}

	@Column(name = "sh_status")
	public Short getShStatus() {
		return this.shStatus;
	}

	public void setShStatus(Short shStatus) {
		this.shStatus = shStatus;
	}

	@Column(name = "sh_upd_datetime", length = 19)
	public Timestamp getShUpdDatetime() {
		return this.shUpdDatetime;
	}

	public void setShUpdDatetime(Timestamp shUpdDatetime) {
		this.shUpdDatetime = shUpdDatetime;
	}

	@Column(name = "sh_upd_user", length = 36)
	public String getShUpdUser() {
		return this.shUpdUser;
	}

	public void setShUpdUser(String shUpdUser) {
		this.shUpdUser = shUpdUser;
	}

	@Column(name = "sh_history_code", length = 100)
	public String getShHistoryCode() {
		return this.shHistoryCode;
	}

	public void setShHistoryCode(String shHistoryCode) {
		this.shHistoryCode = shHistoryCode;
	}

	@Column(name = "shmerge_state")
	public Short getShmergeState() {
		return this.shmergeState;
	}

	public void setShmergeState(Short shmergeState) {
		this.shmergeState = shmergeState;
	}

	@Column(name = "ar_fullname")
	public String getArFullname() {
		return this.arFullname;
	}

	public void setArFullname(String arFullname) {
		this.arFullname = arFullname;
	}
	
	@Transient
	public long getCount() {
		return count;
	}

	public void setCount(long count) {
		this.count = count;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ViewBakpurchase))
			return false;
		ViewBakpurchase castOther = (ViewBakpurchase) other;

		return ((this.getBakPurId() == castOther.getBakPurId()) || (this
				.getBakPurId() != null && castOther.getBakPurId() != null && this
				.getBakPurId().equals(castOther.getBakPurId())))
				&& ((this.getBakHospId() == castOther.getBakHospId()) || (this
						.getBakHospId() != null
						&& castOther.getBakHospId() != null && this
						.getBakHospId().equals(castOther.getBakHospId())))
				&& ((this.getDrugId() == castOther.getDrugId()) || (this
						.getDrugId() != null && castOther.getDrugId() != null && this
						.getDrugId().equals(castOther.getDrugId())))
				&& ((this.getPurPrice() == castOther.getPurPrice()) || (this
						.getPurPrice() != null
						&& castOther.getPurPrice() != null && this
						.getPurPrice().equals(castOther.getPurPrice())))
				&& ((this.getPurAmount() == castOther.getPurAmount()) || (this
						.getPurAmount() != null
						&& castOther.getPurAmount() != null && this
						.getPurAmount().equals(castOther.getPurAmount())))
				&& ((this.getDelId() == castOther.getDelId()) || (this
						.getDelId() != null && castOther.getDelId() != null && this
						.getDelId().equals(castOther.getDelId())))
				&& ((this.getIsLongtimePlan() == castOther.getIsLongtimePlan()) || (this
						.getIsLongtimePlan() != null
						&& castOther.getIsLongtimePlan() != null && this
						.getIsLongtimePlan().equals(
								castOther.getIsLongtimePlan())))
				&& ((this.getBakReason() == castOther.getBakReason()) || (this
						.getBakReason() != null
						&& castOther.getBakReason() != null && this
						.getBakReason().equals(castOther.getBakReason())))
				&& ((this.getRemark() == castOther.getRemark()) || (this
						.getRemark() != null && castOther.getRemark() != null && this
						.getRemark().equals(castOther.getRemark())))
				&& ((this.getBakSubmitDatetime() == castOther
						.getBakSubmitDatetime()) || (this
						.getBakSubmitDatetime() != null
						&& castOther.getBakSubmitDatetime() != null && this
						.getBakSubmitDatetime().equals(
								castOther.getBakSubmitDatetime())))
				&& ((this.getBakSubmitUser() == castOther.getBakSubmitUser()) || (this
						.getBakSubmitUser() != null
						&& castOther.getBakSubmitUser() != null && this
						.getBakSubmitUser()
						.equals(castOther.getBakSubmitUser())))
				&& ((this.getAuditStatus() == castOther.getAuditStatus()) || (this
						.getAuditStatus() != null
						&& castOther.getAuditStatus() != null && this
						.getAuditStatus().equals(castOther.getAuditStatus())))
				&& ((this.getAuditRemaks() == castOther.getAuditRemaks()) || (this
						.getAuditRemaks() != null
						&& castOther.getAuditRemaks() != null && this
						.getAuditRemaks().equals(castOther.getAuditRemaks())))
				&& ((this.getAuditDatetime() == castOther.getAuditDatetime()) || (this
						.getAuditDatetime() != null
						&& castOther.getAuditDatetime() != null && this
						.getAuditDatetime()
						.equals(castOther.getAuditDatetime())))
				&& ((this.getAuditUser() == castOther.getAuditUser()) || (this
						.getAuditUser() != null
						&& castOther.getAuditUser() != null && this
						.getAuditUser().equals(castOther.getAuditUser())))
				&& ((this.getVdDrugid() == castOther.getVdDrugid()) || (this
						.getVdDrugid() != null
						&& castOther.getVdDrugid() != null && this
						.getVdDrugid().equals(castOther.getVdDrugid())))
				&& ((this.getDrugCode() == castOther.getDrugCode()) || (this
						.getDrugCode() != null
						&& castOther.getDrugCode() != null && this
						.getDrugCode().equals(castOther.getDrugCode())))
				&& ((this.getDrugName() == castOther.getDrugName()) || (this
						.getDrugName() != null
						&& castOther.getDrugName() != null && this
						.getDrugName().equals(castOther.getDrugName())))
				&& ((this.getDrugNameSpel() == castOther.getDrugNameSpel()) || (this
						.getDrugNameSpel() != null
						&& castOther.getDrugNameSpel() != null && this
						.getDrugNameSpel().equals(castOther.getDrugNameSpel())))
				&& ((this.getDrugNameEng() == castOther.getDrugNameEng()) || (this
						.getDrugNameEng() != null
						&& castOther.getDrugNameEng() != null && this
						.getDrugNameEng().equals(castOther.getDrugNameEng())))
				&& ((this.getBusName() == castOther.getBusName()) || (this
						.getBusName() != null && castOther.getBusName() != null && this
						.getBusName().equals(castOther.getBusName())))
				&& ((this.getFormId() == castOther.getFormId()) || (this
						.getFormId() != null && castOther.getFormId() != null && this
						.getFormId().equals(castOther.getFormId())))
				&& ((this.getFormName() == castOther.getFormName()) || (this
						.getFormName() != null
						&& castOther.getFormName() != null && this
						.getFormName().equals(castOther.getFormName())))
				&& ((this.getSpecId() == castOther.getSpecId()) || (this
						.getSpecId() != null && castOther.getSpecId() != null && this
						.getSpecId().equals(castOther.getSpecId())))
				&& ((this.getSpecName() == castOther.getSpecName()) || (this
						.getSpecName() != null
						&& castOther.getSpecName() != null && this
						.getSpecName().equals(castOther.getSpecName())))
				&& ((this.getFactor() == castOther.getFactor()) || (this
						.getFactor() != null && castOther.getFactor() != null && this
						.getFactor().equals(castOther.getFactor())))
				&& ((this.getUnit() == castOther.getUnit()) || (this.getUnit() != null
						&& castOther.getUnit() != null && this.getUnit()
						.equals(castOther.getUnit())))
				&& ((this.getProdCompId() == castOther.getProdCompId()) || (this
						.getProdCompId() != null
						&& castOther.getProdCompId() != null && this
						.getProdCompId().equals(castOther.getProdCompId())))
				&& ((this.getCompName() == castOther.getCompName()) || (this
						.getCompName() != null
						&& castOther.getCompName() != null && this
						.getCompName().equals(castOther.getCompName())))
				&& ((this.getMaterialId() == castOther.getMaterialId()) || (this
						.getMaterialId() != null
						&& castOther.getMaterialId() != null && this
						.getMaterialId().equals(castOther.getMaterialId())))
				&& ((this.getMaterialName() == castOther.getMaterialName()) || (this
						.getMaterialName() != null
						&& castOther.getMaterialName() != null && this
						.getMaterialName().equals(castOther.getMaterialName())))
				&& ((this.getApprovalCode() == castOther.getApprovalCode()) || (this
						.getApprovalCode() != null
						&& castOther.getApprovalCode() != null && this
						.getApprovalCode().equals(castOther.getApprovalCode())))
				&& ((this.getApprovalDate() == castOther.getApprovalDate()) || (this
						.getApprovalDate() != null
						&& castOther.getApprovalDate() != null && this
						.getApprovalDate().equals(castOther.getApprovalDate())))
				&& ((this.getStatus() == castOther.getStatus()) || (this
						.getStatus() != null && castOther.getStatus() != null && this
						.getStatus().equals(castOther.getStatus())))
				&& ((this.getUpdDatetime() == castOther.getUpdDatetime()) || (this
						.getUpdDatetime() != null
						&& castOther.getUpdDatetime() != null && this
						.getUpdDatetime().equals(castOther.getUpdDatetime())))
				&& ((this.getUpdUser() == castOther.getUpdUser()) || (this
						.getUpdUser() != null && castOther.getUpdUser() != null && this
						.getUpdUser().equals(castOther.getUpdUser())))
				&& ((this.getUsername() == castOther.getUsername()) || (this
						.getUsername() != null
						&& castOther.getUsername() != null && this
						.getUsername().equals(castOther.getUsername())))
				&& ((this.getHistoryDrugCode() == castOther
						.getHistoryDrugCode()) || (this.getHistoryDrugCode() != null
						&& castOther.getHistoryDrugCode() != null && this
						.getHistoryDrugCode().equals(
								castOther.getHistoryDrugCode())))
				&& ((this.getMergeStatus() == castOther.getMergeStatus()) || (this
						.getMergeStatus() != null
						&& castOther.getMergeStatus() != null && this
						.getMergeStatus().equals(castOther.getMergeStatus())))
				&& ((this.getDrugAttr() == castOther.getDrugAttr()) || (this
						.getDrugAttr() != null
						&& castOther.getDrugAttr() != null && this
						.getDrugAttr().equals(castOther.getDrugAttr())))
				&& ((this.getDrugIndex() == castOther.getDrugIndex()) || (this
						.getDrugIndex() != null
						&& castOther.getDrugIndex() != null && this
						.getDrugIndex().equals(castOther.getDrugIndex())))
				&& ((this.getPharId() == castOther.getPharId()) || (this
						.getPharId() != null && castOther.getPharId() != null && this
						.getPharId().equals(castOther.getPharId())))
				&& ((this.getPharName() == castOther.getPharName()) || (this
						.getPharName() != null
						&& castOther.getPharName() != null && this
						.getPharName().equals(castOther.getPharName())))
				&& ((this.getPatternType() == castOther.getPatternType()) || (this
						.getPatternType() != null
						&& castOther.getPatternType() != null && this
						.getPatternType().equals(castOther.getPatternType())))
				&& ((this.getDrugSource() == castOther.getDrugSource()) || (this
						.getDrugSource() != null
						&& castOther.getDrugSource() != null && this
						.getDrugSource().equals(castOther.getDrugSource())))
				&& ((this.getIsLowprice() == castOther.getIsLowprice()) || (this
						.getIsLowprice() != null
						&& castOther.getIsLowprice() != null && this
						.getIsLowprice().equals(castOther.getIsLowprice())))
				&& ((this.getIsAgriculture() == castOther.getIsAgriculture()) || (this
						.getIsAgriculture() != null
						&& castOther.getIsAgriculture() != null && this
						.getIsAgriculture()
						.equals(castOther.getIsAgriculture())))
				&& ((this.getIsHealthcare() == castOther.getIsHealthcare()) || (this
						.getIsHealthcare() != null
						&& castOther.getIsHealthcare() != null && this
						.getIsHealthcare().equals(castOther.getIsHealthcare())))
				&& ((this.getDrugStdCode() == castOther.getDrugStdCode()) || (this
						.getDrugStdCode() != null
						&& castOther.getDrugStdCode() != null && this
						.getDrugStdCode().equals(castOther.getDrugStdCode())))
				&& ((this.getDrugStdcdRemark() == castOther
						.getDrugStdcdRemark()) || (this.getDrugStdcdRemark() != null
						&& castOther.getDrugStdcdRemark() != null && this
						.getDrugStdcdRemark().equals(
								castOther.getDrugStdcdRemark())))
				&& ((this.getCdRemark() == castOther.getCdRemark()) || (this
						.getCdRemark() != null
						&& castOther.getCdRemark() != null && this
						.getCdRemark().equals(castOther.getCdRemark())))
				&& ((this.getCompId() == castOther.getCompId()) || (this
						.getCompId() != null && castOther.getCompId() != null && this
						.getCompId().equals(castOther.getCompId())))
				&& ((this.getCompCode() == castOther.getCompCode()) || (this
						.getCompCode() != null
						&& castOther.getCompCode() != null && this
						.getCompCode().equals(castOther.getCompCode())))
				&& ((this.getScCompname() == castOther.getScCompname()) || (this
						.getScCompname() != null
						&& castOther.getScCompname() != null && this
						.getScCompname().equals(castOther.getScCompname())))
				&& ((this.getCompSpelCode() == castOther.getCompSpelCode()) || (this
						.getCompSpelCode() != null
						&& castOther.getCompSpelCode() != null && this
						.getCompSpelCode().equals(castOther.getCompSpelCode())))
				&& ((this.getCompNameEng() == castOther.getCompNameEng()) || (this
						.getCompNameEng() != null
						&& castOther.getCompNameEng() != null && this
						.getCompNameEng().equals(castOther.getCompNameEng())))
				&& ((this.getCompShortName() == castOther.getCompShortName()) || (this
						.getCompShortName() != null
						&& castOther.getCompShortName() != null && this
						.getCompShortName()
						.equals(castOther.getCompShortName())))
				&& ((this.getCompShortSpelCode() == castOther
						.getCompShortSpelCode()) || (this
						.getCompShortSpelCode() != null
						&& castOther.getCompShortSpelCode() != null && this
						.getCompShortSpelCode().equals(
								castOther.getCompShortSpelCode())))
				&& ((this.getCompType() == castOther.getCompType()) || (this
						.getCompType() != null
						&& castOther.getCompType() != null && this
						.getCompType().equals(castOther.getCompType())))
				&& ((this.getAreaId() == castOther.getAreaId()) || (this
						.getAreaId() != null && castOther.getAreaId() != null && this
						.getAreaId().equals(castOther.getAreaId())))
				&& ((this.getCompRegId() == castOther.getCompRegId()) || (this
						.getCompRegId() != null
						&& castOther.getCompRegId() != null && this
						.getCompRegId().equals(castOther.getCompRegId())))
				&& ((this.getOrgCode() == castOther.getOrgCode()) || (this
						.getOrgCode() != null && castOther.getOrgCode() != null && this
						.getOrgCode().equals(castOther.getOrgCode())))
				&& ((this.getCompGroupId() == castOther.getCompGroupId()) || (this
						.getCompGroupId() != null
						&& castOther.getCompGroupId() != null && this
						.getCompGroupId().equals(castOther.getCompGroupId())))
				&& ((this.getCompPhone() == castOther.getCompPhone()) || (this
						.getCompPhone() != null
						&& castOther.getCompPhone() != null && this
						.getCompPhone().equals(castOther.getCompPhone())))
				&& ((this.getCompAddress() == castOther.getCompAddress()) || (this
						.getCompAddress() != null
						&& castOther.getCompAddress() != null && this
						.getCompAddress().equals(castOther.getCompAddress())))
				&& ((this.getCompClassify() == castOther.getCompClassify()) || (this
						.getCompClassify() != null
						&& castOther.getCompClassify() != null && this
						.getCompClassify().equals(castOther.getCompClassify())))
				&& ((this.getScStatus() == castOther.getScStatus()) || (this
						.getScStatus() != null
						&& castOther.getScStatus() != null && this
						.getScStatus().equals(castOther.getScStatus())))
				&& ((this.getScUpddatetime() == castOther.getScUpddatetime()) || (this
						.getScUpddatetime() != null
						&& castOther.getScUpddatetime() != null && this
						.getScUpddatetime()
						.equals(castOther.getScUpddatetime())))
				&& ((this.getScUpduser() == castOther.getScUpduser()) || (this
						.getScUpduser() != null
						&& castOther.getScUpduser() != null && this
						.getScUpduser().equals(castOther.getScUpduser())))
				&& ((this.getHistoryCode() == castOther.getHistoryCode()) || (this
						.getHistoryCode() != null
						&& castOther.getHistoryCode() != null && this
						.getHistoryCode().equals(castOther.getHistoryCode())))
				&& ((this.getMergeState() == castOther.getMergeState()) || (this
						.getMergeState() != null
						&& castOther.getMergeState() != null && this
						.getMergeState().equals(castOther.getMergeState())))
				&& ((this.getHospId() == castOther.getHospId()) || (this
						.getHospId() != null && castOther.getHospId() != null && this
						.getHospId().equals(castOther.getHospId())))
				&& ((this.getHospCode() == castOther.getHospCode()) || (this
						.getHospCode() != null
						&& castOther.getHospCode() != null && this
						.getHospCode().equals(castOther.getHospCode())))
				&& ((this.getHospName() == castOther.getHospName()) || (this
						.getHospName() != null
						&& castOther.getHospName() != null && this
						.getHospName().equals(castOther.getHospName())))
				&& ((this.getHospSpelCode() == castOther.getHospSpelCode()) || (this
						.getHospSpelCode() != null
						&& castOther.getHospSpelCode() != null && this
						.getHospSpelCode().equals(castOther.getHospSpelCode())))
				&& ((this.getHospShortName() == castOther.getHospShortName()) || (this
						.getHospShortName() != null
						&& castOther.getHospShortName() != null && this
						.getHospShortName()
						.equals(castOther.getHospShortName())))
				&& ((this.getHospShortSpelCode() == castOther
						.getHospShortSpelCode()) || (this
						.getHospShortSpelCode() != null
						&& castOther.getHospShortSpelCode() != null && this
						.getHospShortSpelCode().equals(
								castOther.getHospShortSpelCode())))
				&& ((this.getShAreaId() == castOther.getShAreaId()) || (this
						.getShAreaId() != null
						&& castOther.getShAreaId() != null && this
						.getShAreaId().equals(castOther.getShAreaId())))
				&& ((this.getShOrgCode() == castOther.getShOrgCode()) || (this
						.getShOrgCode() != null
						&& castOther.getShOrgCode() != null && this
						.getShOrgCode().equals(castOther.getShOrgCode())))
				&& ((this.getHospClassify() == castOther.getHospClassify()) || (this
						.getHospClassify() != null
						&& castOther.getHospClassify() != null && this
						.getHospClassify().equals(castOther.getHospClassify())))
				&& ((this.getHospTypeId() == castOther.getHospTypeId()) || (this
						.getHospTypeId() != null
						&& castOther.getHospTypeId() != null && this
						.getHospTypeId().equals(castOther.getHospTypeId())))
				&& ((this.getShHospLevelId() == castOther.getShHospLevelId()) || (this
						.getShHospLevelId() != null
						&& castOther.getShHospLevelId() != null && this
						.getShHospLevelId()
						.equals(castOther.getShHospLevelId())))
				&& ((this.getHospAddress() == castOther.getHospAddress()) || (this
						.getHospAddress() != null
						&& castOther.getHospAddress() != null && this
						.getHospAddress().equals(castOther.getHospAddress())))
				&& ((this.getHospPhone() == castOther.getHospPhone()) || (this
						.getHospPhone() != null
						&& castOther.getHospPhone() != null && this
						.getHospPhone().equals(castOther.getHospPhone())))
				&& ((this.getShStatus() == castOther.getShStatus()) || (this
						.getShStatus() != null
						&& castOther.getShStatus() != null && this
						.getShStatus().equals(castOther.getShStatus())))
				&& ((this.getShUpdDatetime() == castOther.getShUpdDatetime()) || (this
						.getShUpdDatetime() != null
						&& castOther.getShUpdDatetime() != null && this
						.getShUpdDatetime()
						.equals(castOther.getShUpdDatetime())))
				&& ((this.getShUpdUser() == castOther.getShUpdUser()) || (this
						.getShUpdUser() != null
						&& castOther.getShUpdUser() != null && this
						.getShUpdUser().equals(castOther.getShUpdUser())))
				&& ((this.getShHistoryCode() == castOther.getShHistoryCode()) || (this
						.getShHistoryCode() != null
						&& castOther.getShHistoryCode() != null && this
						.getShHistoryCode()
						.equals(castOther.getShHistoryCode())))
				&& ((this.getShmergeState() == castOther.getShmergeState()) || (this
						.getShmergeState() != null
						&& castOther.getShmergeState() != null && this
						.getShmergeState().equals(castOther.getShmergeState())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getBakPurId() == null ? 0 : this.getBakPurId().hashCode());
		result = 37 * result
				+ (getBakHospId() == null ? 0 : this.getBakHospId().hashCode());
		result = 37 * result
				+ (getDrugId() == null ? 0 : this.getDrugId().hashCode());
		result = 37 * result
				+ (getPurPrice() == null ? 0 : this.getPurPrice().hashCode());
		result = 37 * result
				+ (getPurAmount() == null ? 0 : this.getPurAmount().hashCode());
		result = 37 * result
				+ (getDelId() == null ? 0 : this.getDelId().hashCode());
		result = 37
				* result
				+ (getIsLongtimePlan() == null ? 0 : this.getIsLongtimePlan()
						.hashCode());
		result = 37 * result
				+ (getBakReason() == null ? 0 : this.getBakReason().hashCode());
		result = 37 * result
				+ (getRemark() == null ? 0 : this.getRemark().hashCode());
		result = 37
				* result
				+ (getBakSubmitDatetime() == null ? 0 : this
						.getBakSubmitDatetime().hashCode());
		result = 37
				* result
				+ (getBakSubmitUser() == null ? 0 : this.getBakSubmitUser()
						.hashCode());
		result = 37
				* result
				+ (getAuditStatus() == null ? 0 : this.getAuditStatus()
						.hashCode());
		result = 37
				* result
				+ (getAuditRemaks() == null ? 0 : this.getAuditRemaks()
						.hashCode());
		result = 37
				* result
				+ (getAuditDatetime() == null ? 0 : this.getAuditDatetime()
						.hashCode());
		result = 37 * result
				+ (getAuditUser() == null ? 0 : this.getAuditUser().hashCode());
		result = 37 * result
				+ (getVdDrugid() == null ? 0 : this.getVdDrugid().hashCode());
		result = 37 * result
				+ (getDrugCode() == null ? 0 : this.getDrugCode().hashCode());
		result = 37 * result
				+ (getDrugName() == null ? 0 : this.getDrugName().hashCode());
		result = 37
				* result
				+ (getDrugNameSpel() == null ? 0 : this.getDrugNameSpel()
						.hashCode());
		result = 37
				* result
				+ (getDrugNameEng() == null ? 0 : this.getDrugNameEng()
						.hashCode());
		result = 37 * result
				+ (getBusName() == null ? 0 : this.getBusName().hashCode());
		result = 37 * result
				+ (getFormId() == null ? 0 : this.getFormId().hashCode());
		result = 37 * result
				+ (getFormName() == null ? 0 : this.getFormName().hashCode());
		result = 37 * result
				+ (getSpecId() == null ? 0 : this.getSpecId().hashCode());
		result = 37 * result
				+ (getSpecName() == null ? 0 : this.getSpecName().hashCode());
		result = 37 * result
				+ (getFactor() == null ? 0 : this.getFactor().hashCode());
		result = 37 * result
				+ (getUnit() == null ? 0 : this.getUnit().hashCode());
		result = 37
				* result
				+ (getProdCompId() == null ? 0 : this.getProdCompId()
						.hashCode());
		result = 37 * result
				+ (getCompName() == null ? 0 : this.getCompName().hashCode());
		result = 37
				* result
				+ (getMaterialId() == null ? 0 : this.getMaterialId()
						.hashCode());
		result = 37
				* result
				+ (getMaterialName() == null ? 0 : this.getMaterialName()
						.hashCode());
		result = 37
				* result
				+ (getApprovalCode() == null ? 0 : this.getApprovalCode()
						.hashCode());
		result = 37
				* result
				+ (getApprovalDate() == null ? 0 : this.getApprovalDate()
						.hashCode());
		result = 37 * result
				+ (getStatus() == null ? 0 : this.getStatus().hashCode());
		result = 37
				* result
				+ (getUpdDatetime() == null ? 0 : this.getUpdDatetime()
						.hashCode());
		result = 37 * result
				+ (getUpdUser() == null ? 0 : this.getUpdUser().hashCode());
		result = 37 * result
				+ (getUsername() == null ? 0 : this.getUsername().hashCode());
		result = 37
				* result
				+ (getHistoryDrugCode() == null ? 0 : this.getHistoryDrugCode()
						.hashCode());
		result = 37
				* result
				+ (getMergeStatus() == null ? 0 : this.getMergeStatus()
						.hashCode());
		result = 37 * result
				+ (getDrugAttr() == null ? 0 : this.getDrugAttr().hashCode());
		result = 37 * result
				+ (getDrugIndex() == null ? 0 : this.getDrugIndex().hashCode());
		result = 37 * result
				+ (getPharId() == null ? 0 : this.getPharId().hashCode());
		result = 37 * result
				+ (getPharName() == null ? 0 : this.getPharName().hashCode());
		result = 37
				* result
				+ (getPatternType() == null ? 0 : this.getPatternType()
						.hashCode());
		result = 37
				* result
				+ (getDrugSource() == null ? 0 : this.getDrugSource()
						.hashCode());
		result = 37
				* result
				+ (getIsLowprice() == null ? 0 : this.getIsLowprice()
						.hashCode());
		result = 37
				* result
				+ (getIsAgriculture() == null ? 0 : this.getIsAgriculture()
						.hashCode());
		result = 37
				* result
				+ (getIsHealthcare() == null ? 0 : this.getIsHealthcare()
						.hashCode());
		result = 37
				* result
				+ (getDrugStdCode() == null ? 0 : this.getDrugStdCode()
						.hashCode());
		result = 37
				* result
				+ (getDrugStdcdRemark() == null ? 0 : this.getDrugStdcdRemark()
						.hashCode());
		result = 37 * result
				+ (getCdRemark() == null ? 0 : this.getCdRemark().hashCode());
		result = 37 * result
				+ (getCompId() == null ? 0 : this.getCompId().hashCode());
		result = 37 * result
				+ (getCompCode() == null ? 0 : this.getCompCode().hashCode());
		result = 37
				* result
				+ (getScCompname() == null ? 0 : this.getScCompname()
						.hashCode());
		result = 37
				* result
				+ (getCompSpelCode() == null ? 0 : this.getCompSpelCode()
						.hashCode());
		result = 37
				* result
				+ (getCompNameEng() == null ? 0 : this.getCompNameEng()
						.hashCode());
		result = 37
				* result
				+ (getCompShortName() == null ? 0 : this.getCompShortName()
						.hashCode());
		result = 37
				* result
				+ (getCompShortSpelCode() == null ? 0 : this
						.getCompShortSpelCode().hashCode());
		result = 37 * result
				+ (getCompType() == null ? 0 : this.getCompType().hashCode());
		result = 37 * result
				+ (getAreaId() == null ? 0 : this.getAreaId().hashCode());
		result = 37 * result
				+ (getCompRegId() == null ? 0 : this.getCompRegId().hashCode());
		result = 37 * result
				+ (getOrgCode() == null ? 0 : this.getOrgCode().hashCode());
		result = 37
				* result
				+ (getCompGroupId() == null ? 0 : this.getCompGroupId()
						.hashCode());
		result = 37 * result
				+ (getCompPhone() == null ? 0 : this.getCompPhone().hashCode());
		result = 37
				* result
				+ (getCompAddress() == null ? 0 : this.getCompAddress()
						.hashCode());
		result = 37
				* result
				+ (getCompClassify() == null ? 0 : this.getCompClassify()
						.hashCode());
		result = 37 * result
				+ (getScStatus() == null ? 0 : this.getScStatus().hashCode());
		result = 37
				* result
				+ (getScUpddatetime() == null ? 0 : this.getScUpddatetime()
						.hashCode());
		result = 37 * result
				+ (getScUpduser() == null ? 0 : this.getScUpduser().hashCode());
		result = 37
				* result
				+ (getHistoryCode() == null ? 0 : this.getHistoryCode()
						.hashCode());
		result = 37
				* result
				+ (getMergeState() == null ? 0 : this.getMergeState()
						.hashCode());
		result = 37 * result
				+ (getHospId() == null ? 0 : this.getHospId().hashCode());
		result = 37 * result
				+ (getHospCode() == null ? 0 : this.getHospCode().hashCode());
		result = 37 * result
				+ (getHospName() == null ? 0 : this.getHospName().hashCode());
		result = 37
				* result
				+ (getHospSpelCode() == null ? 0 : this.getHospSpelCode()
						.hashCode());
		result = 37
				* result
				+ (getHospShortName() == null ? 0 : this.getHospShortName()
						.hashCode());
		result = 37
				* result
				+ (getHospShortSpelCode() == null ? 0 : this
						.getHospShortSpelCode().hashCode());
		result = 37 * result
				+ (getShAreaId() == null ? 0 : this.getShAreaId().hashCode());
		result = 37 * result
				+ (getShOrgCode() == null ? 0 : this.getShOrgCode().hashCode());
		result = 37
				* result
				+ (getHospClassify() == null ? 0 : this.getHospClassify()
						.hashCode());
		result = 37
				* result
				+ (getHospTypeId() == null ? 0 : this.getHospTypeId()
						.hashCode());
		result = 37
				* result
				+ (getShHospLevelId() == null ? 0 : this.getShHospLevelId()
						.hashCode());
		result = 37
				* result
				+ (getHospAddress() == null ? 0 : this.getHospAddress()
						.hashCode());
		result = 37 * result
				+ (getHospPhone() == null ? 0 : this.getHospPhone().hashCode());
		result = 37 * result
				+ (getShStatus() == null ? 0 : this.getShStatus().hashCode());
		result = 37
				* result
				+ (getShUpdDatetime() == null ? 0 : this.getShUpdDatetime()
						.hashCode());
		result = 37 * result
				+ (getShUpdUser() == null ? 0 : this.getShUpdUser().hashCode());
		result = 37
				* result
				+ (getShHistoryCode() == null ? 0 : this.getShHistoryCode()
						.hashCode());
		result = 37
				* result
				+ (getShmergeState() == null ? 0 : this.getShmergeState()
						.hashCode());
		return result;
	}

	@Transient
	public String getSubmitStartDate() {
		return submitStartDate;
	}

	public void setSubmitStartDate(String submitStartDate) {
		this.submitStartDate = submitStartDate;
	}

	@Transient
	public String getSubmitEndDate() {
		return submitEndDate;
	}

	public void setSubmitEndDate(String submitEndDate) {
		this.submitEndDate = submitEndDate;
	}

}